<template>
  <div>
    <ckd.SignUpload
      v-model="mainData.dataRegisterOwnershipDTO.autho_file_ids"
      :file-list="(mainData.dataRegisterOwnershipDTO as any).authFileInfoVOS"
      file-name-key="file_origin_name"
      file-path-key="file_path"
      :extend-props="{
        accept: '.pdf',
        single: true,
        startUpload: '/enroll/data_resource/multipart/data_auth/preparation',
        uploadPath: '/enroll/data_resource/multipart/data_auth/upload_chunk',
        mergePath: '/enroll/data_resource/multipart/data_auth/merge_upload'
      }"
      @uploaded="emits('promiseEnd', 'dataRegisterOwnershipDTO.autho_file_ids')"
    >
      <a-button type="primary" :disabled="!!mainData.dataRegisterOwnershipDTO.autho_file_ids"
        ><icon-upload />上传文件</a-button
      >
      <template #description>
        <a-row class="w-full text-[12px] text-[#A3B0CC] pt-[4px] leading-[16px]">
          支持上传pdf格式文件，支持上传1个文件，大小不超过50M
        </a-row>
      </template>
    </ckd.SignUpload>
  </div>
</template>

<script lang="ts" setup>
import ckd from './signUpload.vue';
</script>

<style lang="less" scoped></style>
